
//
//  CLMyBTCAddressVc.m
//  project
//
//  Created by Apple on 2017/11/7.
//  Copyright © 2017年 Macmini. All rights reserved.
//

#import "CLMyBTCAddressVc.h"

#import "MyAddressBTCCell.h"
#import "CLAddBTCAddressVc.h"
#import "UIStoryboard+load.h"
@interface CLMyBTCAddressVc ()<UITableViewDelegate, UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation CLMyBTCAddressVc

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //    btc_eth 1 BTC; 2 ETH

    self.tableView.backgroundColor = CL_bgColor;
    // Do any additional setup after loading the view.
}
- (IBAction)btnAction:(id)sender {
    CLAddBTCAddressVc *vc = [UIStoryboard loadStoryboard:@"CLAddBTCAddressVc"];
    vc.btc_eth = self.btc_eth;
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
//指定有多少个分区(Section)，默认为1
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 10;
}

//指定每个分区中有多少行，默认为1
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    
    return 0.001;
}
-(CGFloat) tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    
    return 10;
}
//绘制Cell
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
    
    MyAddressBTCCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyAddressBTCCell"];
   
    return cell;
}


//改变行的高度
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 130;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
